package com.zhong.learning.auto_paper.dto;

import com.our.learning.infrastructure.po.Paper;

import java.util.List;

/**
 * 自动组卷接收的内容
 * @author zhong
 * @date 2023/6/20
 */
public class AutoPaperDto {
    private Integer id;
    private String name;
    private Integer sumScore;
    // 1--easy,2--medium,3--hard
    private Integer difficulty;
    private List<String> questionTypes;
    private List<Integer> questionNums;
    public AutoPaperDto() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSumScore() {
        return sumScore;
    }

    public void setSumScore(Integer sum_score) {
        this.sumScore = sum_score;
    }

    public Integer getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(Integer difficulty) {
        this.difficulty = difficulty;
    }

    public List<String> getQuestionTypes() {
        return questionTypes;
    }

    public void setQuestionTypes(List<String> questionTypes) {
        this.questionTypes = questionTypes;
    }

    public List<Integer> getQuestionNums() {
        return questionNums;
    }

    public void setQuestionNums(List<Integer> questionNums) {
        this.questionNums = questionNums;
    }

    public Paper getAutoPaper() {
        Paper paper = new Paper();
        paper.setId(id);
        paper.setName(name);
        paper.setSumScore(sumScore);
        return paper;
    }

    @Override
    public String toString() {
        return "AutoPaperDTO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sumScore=" + sumScore +
                ", difficulty=" + difficulty +
                ", questionType=" + questionTypes +
                ", questionScore=" + questionNums +
                '}';
    }
}
